package com.bdqn.Sj2;

import com.bdqn.Sj1.Technology;

public class Except extends Operation{

    @Override
    public double Result() {
        if (this.getNumberB()==0){
            try {
                throw new Exception("除数不能为0!");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return this.getNumberA()/this.getNumberB();
    }
}
